//
//  IOS7IOS6Macth.h
//  ZYCoreDataSuperDemo1
//
//  Created by Box on 14-3-13.
//  Copyright (c) 2014年 Box. All rights reserved.
//

#ifndef ZYCoreDataSuperDemo1_IOS7IOS6Macth_h
#define ZYCoreDataSuperDemo1_IOS7IOS6Macth_h

//disable loggin on production
#ifdef DEBUG
#define KSLog(format, ...) CFShow((__bridge CFTypeRef)[NSString stringWithFormat:format, ## __VA_ARGS__]);

//#import "Extend_Description.h"

#else
#define KSLog(...)
#endif

#define IsIOS7 ([[[[UIDevice currentDevice] systemVersion] substringToIndex:1] intValue]>=7)
#define CGRECT_NO_NAV(x,y,w,h) CGRectMake((x), (y+(IsIOS7?20:0)), (w), (h))
#define CGRECT_HAVE_NAV(x,y,w,h) CGRectMake((x), (y+(IsIOS7?64:0)), (w), (h))

#endif

